package com.sdx.console.transaction.web.query;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date;
import com.sdx.common.utils.Utils;
/**
 *FinTransaction查询
 */
public class FinTransactionQuery extends PageParam {
    @Query(name = "交易id", display = true)        
    private String transactionId;
    @Query(name = "用户id", display = true)        
    private String userId;
    @Query(name = "订单id", display = true)        
    private String orderId;
    @Query(name = "订单类型", display = true)        
    private Integer orderType;
    @Query(name = "支付类型", display = true)        
    private Integer payMethod;
    @Query(name = "appId", display = true)        
    private String appId;
    @Query(name = "商户号", display = true)        
    private String merchantId;
    @Query(name = "交易号", display = true)        
    private String tradeNo;
    @Query(name = "交易金额", display = true)        
    private Long totalMoney;
    @Query(name = "支付状态", display = true)        
    private Integer payFlag;
    @Query(name = "创建时间", display = true)        
	private String createTime;
	private Date createTimeStart;
	private Date createTimeEnd;
    @Query(name = "退款时间", display = true)        
	private String refundTime;
	private Date refundTimeStart;
	private Date refundTimeEnd;
    @Query(name = "退款单id", display = true)        
    private String refundId;
    @Query(name = "来源", display = true)        
    private String comefrom;
    private Integer tenantId;
    public String getTransactionId(){
        return  transactionId;
    }
    public void setTransactionId(String transactionId ){
        this.transactionId = transactionId;
    }
    public String getUserId(){
        return  userId;
    }
    public void setUserId(String userId ){
        this.userId = userId;
    }
    public String getOrderId(){
        return  orderId;
    }
    public void setOrderId(String orderId ){
        this.orderId = orderId;
    }
    public Integer getOrderType(){
        return  orderType;
    }
    public void setOrderType(Integer orderType ){
        this.orderType = orderType;
    }
    public Integer getPayMethod(){
        return  payMethod;
    }
    public void setPayMethod(Integer payMethod ){
        this.payMethod = payMethod;
    }
    public String getAppId(){
        return  appId;
    }
    public void setAppId(String appId ){
        this.appId = appId;
    }
    public String getMerchantId(){
        return  merchantId;
    }
    public void setMerchantId(String merchantId ){
        this.merchantId = merchantId;
    }
    public String getTradeNo(){
        return  tradeNo;
    }
    public void setTradeNo(String tradeNo ){
        this.tradeNo = tradeNo;
    }
    public Long getTotalMoney(){
        return  totalMoney;
    }
    public void setTotalMoney(Long totalMoney ){
        this.totalMoney = totalMoney;
    }
    public Integer getPayFlag(){
        return  payFlag;
    }
    public void setPayFlag(Integer payFlag ){
        this.payFlag = payFlag;
    }
	public String getCreateTime(){
		return  createTime;
	}
	public void setCreateTime(String createTime ){
		this.createTime = createTime;
		Date[] timePair = Utils.parseQueryTime(createTime);
		if (timePair!=null && timePair[0]!=null) {
			this.createTimeStart = timePair[0];
		}
		if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
		this.createTimeEnd = timePair[1];
		}

	}
	public Date getCreateTimeStart(){
		return  createTimeStart;
	}
	public void setCreateTimeStart(Date createTimeStart ){
		this.createTimeStart = createTimeStart;
	}
	public Date getCreateTimeEnd(){
		return  createTimeEnd;
	}
	public void setCreateTimeEnd(Date createTimeEnd ){
		this.createTimeEnd = createTimeEnd;
	}
	public String getRefundTime(){
		return  refundTime;
	}
	public void setRefundTime(String refundTime ){
		this.refundTime = refundTime;
		Date[] timePair = Utils.parseQueryTime(refundTime);
		if (timePair!=null && timePair[0]!=null) {
			this.refundTimeStart = timePair[0];
		}
		if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
		this.refundTimeEnd = timePair[1];
		}

	}
	public Date getRefundTimeStart(){
		return  refundTimeStart;
	}
	public void setRefundTimeStart(Date refundTimeStart ){
		this.refundTimeStart = refundTimeStart;
	}
	public Date getRefundTimeEnd(){
		return  refundTimeEnd;
	}
	public void setRefundTimeEnd(Date refundTimeEnd ){
		this.refundTimeEnd = refundTimeEnd;
	}
    public String getRefundId(){
        return  refundId;
    }
    public void setRefundId(String refundId ){
        this.refundId = refundId;
    }
    public String getComefrom(){
        return  comefrom;
    }
    public void setComefrom(String comefrom ){
        this.comefrom = comefrom;
    }

    public Integer getTenantId() {
        return tenantId;
    }

    public void setTenantId(Integer tenantId) {
        this.tenantId = tenantId;
    }
}
